package com.wires.lu.practice;

public class StrongReferenceDemo {

    public static void main(String[] args) {

        Object obj=new Object();//这样定义就是强引用
        Object obj2=obj;//obj2引用赋值
        obj=null;//置空
        System.gc();
        System.out.println(obj2);

    }
}
